package org.jeecg.modules.apiacl.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 对外开放接口授权管理
 * @Author: jeecg-boot
 * @Date:   2023-08-02
 * @Version: V1.0
 */
@Data
@TableName("cs_api_authorize")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cs_api_authorize对象", description="对外开放接口授权管理")
public class TaxApiaclAuthorize implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**请求类型*/
	@Excel(name = "请求类型", width = 15, dicCode = "request_type")
	@Dict(dicCode = "request_type")
    @ApiModelProperty(value = "请求类型")
    private String requestType;
	/**控制方式*/
	@Excel(name = "控制方式", width = 15, dicCode = "control_type")
	@Dict(dicCode = "control_type")
    @ApiModelProperty(value = "控制方式")
    private String controlType;
	/**最大请求次数*/
	@Excel(name = "最大请求次数", width = 15)
    @ApiModelProperty(value = "最大请求次数")
    private Integer maxRequestNum;
	/**已使用次数*/
	@Excel(name = "已使用次数", width = 15)
    @ApiModelProperty(value = "已使用次数")
    private String usedNum;
	/**有效开始日期*/
	@Excel(name = "有效开始日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "有效开始日期")
    private Date startDate;
	/**有效截止日期*/
	@Excel(name = "有效截止日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "有效截止日期")
    private Date endDate;
	/**最后请求日期*/
	@Excel(name = "最后请求日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后请求日期")
    private Date lastRequestDate;
    /**授权账套*/
    @Excel(name = "授权租户编号", width = 15)
    @ApiModelProperty(value = "授权租户编号")
    private String authorizeTenantid;
	/**授权app_key*/
	@Excel(name = "授权app_key", width = 15)
    @ApiModelProperty(value = "授权app_key")
    private String appKey;
	/**授权app_secret*/
	@Excel(name = "授权app_secret", width = 15)
    @ApiModelProperty(value = "授权app_secret")
    private String appSecret;
	/**授权企业名称*/
	@Excel(name = "授权企业名称", width = 15)
    @ApiModelProperty(value = "授权企业名称")
    private String authorizeQymc;
	/**授权企业税号*/
	@Excel(name = "授权企业税号", width = 15)
    @ApiModelProperty(value = "授权企业税号")
    private String authorizeNsrsbh;
	/**授权企业联系人*/
	@Excel(name = "授权企业联系人", width = 15)
    @ApiModelProperty(value = "授权企业联系人")
    private String authorizeContacts;
	/**授权企业联系电话*/
	@Excel(name = "授权企业联系电话", width = 15)
    @ApiModelProperty(value = "授权企业联系电话")
    private String authorizePhone;
	/**商务联系人*/
	@Excel(name = "商务联系人", width = 15)
    @ApiModelProperty(value = "商务联系人")
    private String businessContacts;
	/**商务联系电话*/
	@Excel(name = "商务联系电话", width = 15)
    @ApiModelProperty(value = "商务联系电话")
    private String businessPhone;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String note;
}
